<script src="js/jquery/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("#test").click(function(){
            $.ajax({
                url: "http://tutorial/library/books/list/",
                type: "POST",
                data: "format=json",
                async: false,
                success: function(response){
                    alert(response);
                }
            });
        });
    });
</script>

<div id="test">Testing</div>
